package cn.e3.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
	@RequestMapping(value="/")
	public String showIndex(){
		return "index";
	}
	//页面会传来请求，此时会映射成pag,与工程中的页面一样，返回即可
	@RequestMapping(value="{pag}")
	public String showPage(@PathVariable String pag){
		return pag;
	}
}
